package scaladuct.hint

import scaladuct.{PhaseMethodInterceptor, Starter}

/**
 * <p>
 * Created by IntelliJ IDEA.
 * User: zslajchrt
 * Date: Oct 3, 2010
 * Time: 8:54:42 PM
 */

class HelpHandler(hint: Help, starter: Starter[_]) extends Starter[HelpHandler] {
  override def toString = {
    val interceptor = PhaseMethodInterceptor(starter)
    "This is the help in " + interceptor.phaseName  + " for the starter " + interceptor.starter
  }

  def newInstance() = {
    this
  }

  def destroy(instance: HelpHandler) = null

}